package com.mrd.spring.config;

import org.springframework.session.data.redis.config.annotation.web.http.RedisHttpSessionConfiguration;
import org.springframework.stereotype.Component;

/**
 * Created by dengdc on 2017/6/12.
 */
@Component
public class HttpSessionConfiguration extends RedisHttpSessionConfiguration {
    @Override
    public void setMaxInactiveIntervalInSeconds(int maxInactiveIntervalInSeconds) {
        super.setMaxInactiveIntervalInSeconds(120);
    }
}
